package com.wz.mapper;

import com.wz.entity.Dep;
import com.wz.entity.Emp;
import com.wz.entity.Empage;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmpageMapper {
    @Select("select * from empage")
    List<Empage> findEmpage();

    @Delete("delete  from empage where empno=#{empno}")
    Integer deleteEmpage(String empno);

    @Insert("insert into empage(empno,ename,age,year) values(#{empno},#{ename},#{age},#{year})")
    int saveEmpage(Empage empage);
}
